<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<title><tpl> $langCShopNCSystem </tpl></title>
<tpl>include file ='sys_head_config.html'</tpl>
</head>
<body>
<div class="tabbar">
  <ul class="tab_btns" id="COPYYH2">
    <li class="current"><a href="#"><span><tpl> $langSysIModiPassword </tpl></span></a></li>
  </ul>
	<div class="tab_notes" id="copyyh0">
		<ul class="notesbg block"><span><h4><tpl> $langSysPasswordManageRemark </tpl></h4></span></ul>
	</div>
	<!-- 显示提示信息 -->
	<div id="message"></div>
	<!-- 显示提示信息end -->
</div>

<div id="product-help" class="admincp_form" style="top:88px;">
	<span style="color: #007dc6; font-weight:700; padding-left:20px">
	<div id="result_content">
<form action="system_power.manage.php" id="form_admin_password" name="form_admin_password" method="post">	
<input type="hidden" name="action" value="admin_password_update" />
	<table border="0" cellpadding="0" cellspacing="0" class="from_table">
		<tr>
			<th></th>
			<td class="td rowform"></td>
			<td class="vtop tips2"></td>
		</tr>
		<tr>
			<th><tpl> $langSysIOldPassword </tpl>:</th>
			<td class="td rowform"><input type="password" name="password_old" id="password_old" /></td>
			<td class="vtop tips2"><label style="display:none" for="password_old" class="wrong" metaDone="true" generated="true"></label></td>
		</tr>
		<tr>
			<th><tpl> $langSysINewPassword </tpl>:</th>
			<td class="td rowform"><input type="password" name="password" id="password" /></td>
			<td class="vtop tips2"><tpl> $langSysPasswordRemark </tpl><label style="display:none" for="password" class="wrong" metaDone="true" generated="true"></label></td>
		</tr>
		<tr>
			<th><tpl> $langSysIAffirmPassword </tpl>:</th>
			<td class="td rowform"><input type="password" name="password2" id="password2" /></td>
			<td class="vtop tips2"><tpl> $langSysPasswordRemark </tpl><label style="display:none" for="password2" class="wrong" metaDone="true" generated="true"></label></td>
		</tr>
		<tr>
			<td align="center"></td>
			<td><span class="btn_left"><input name="submit" type="submit" id="submit_btn" class="btn_submit" value="<tpl> $langSysIModiPassword </tpl>"/></span>
			
			<span class="btn_left"><input type="button" value="<tpl> $langSysTurn </tpl>" class="btn_submit" onclick="history.back();" /></span>
			</td>
			<td align="center">&nbsp;</td>
		</tr>
	</table>
</form>
	</div>
</div>
<!-- 帮助菜单 -->
<tpl> include file='sys_right_help.html' </tpl>
<!-- 帮助菜单END -->
</body>
</html>
<script>
$(document).ready(function() {
	hideLoading();
	var options = {
		beforeSubmit:  function(){showLoading(showSaveText);},
		success:       function(msg){
							hideLoading();
							showMessage(msg.message,msg.type);
						},
		type:      'post',
		dataType:  'json'
	};
	
	$("#form_admin_password").validate({
		errorClass: "wrong",
		rules: {
			password_old: {required:true},
			password: {required:true,minlength:5,maxlength:16},
			password2: {required:true,minlength:5,maxlength:16,equalTo:'#password'}
		},
		messages: {
			password_old: {required:"<tpl> $langSysIPleaseFillInOldPassword </tpl>"},
			password: {required: "<tpl> $langSysIPleaseFillInPassword </tpl>",minlength:"<tpl> $langSysIPasswordLengthLessFive </tpl>",maxlength:"<tpl> $langSysIPasswordLengthExceedSixteen </tpl>"},
			password2: {required: "<tpl> $langSysIPleaseFillInAffirmPassword </tpl>",minlength:"<tpl> $langSysIPasswordLengthLessFive </tpl>",maxlength:"<tpl> $langSysIPasswordLengthExceedSixteen </tpl>",equalTo:"<tpl> $langSysIPasswordNoAccord </tpl>"}
		},
		submitHandler: function() {
			$('#form_admin_password').ajaxSubmit(options);
		}
	});
});
</script>